package cn.edu.zafu.bigdata.lekang;

class ClassA{
    void aMethod(){};
}
public class TryAnonymous{
    public static void main(String[] args) {
        ClassA c=new ClassA(){
            void aMethod(){
                System.out.println("Hello world!");
            }
        };
        c.aMethod();
    }
}
